// components/index/morePropertyItem/morePropertyItem.js
import { API_HOST, RES_HOST } from "../../../utils/const"
import http from '../../../utils/http'
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    morePropertyItem: {
      type: Object,
      value: {
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    host: API_HOST,
    res_host: RES_HOST,
    types: ['', '办公用房', '商业用房', '住宅用房', '工业用房', '其他'],
    image:'',
    commodityStatus:false
  },

  attached:function(){
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
    goDetail: function(){
      console.log('goDetail:', this.data.morePropertyItem.id);
      let that = this,
          id = this.data.morePropertyItem.id,
          letType = this.data.morePropertyItem.letType;
      wx.navigateTo({
        url: '/pages/index/propertyDetailB/propertyDetailB?preId=' + id + '&letType=' + letType
      })
    }
  }
})
